home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_01_04 / 1n04078b < prev    next >
Text File  |  1990-08-07  |  320b  |  16 lines

  1.  
  2. Figure 2: DoDialog()
  3. --------------------
  4. /*
  5.  * DoDialog
  6.  */
  7. int DoDialog(HANDLE hInst,HWND hWnd,char *Res,
  8.                  FARPROC lpProc){
  9.    FARPROC lpfn;
  10.    BOOL ret;
  11.    lpfn = MakeProcInstance(lpProc,hInst);
  12.    ret  = DialogBox(hInst,Res,hWnd,lpfn);
  13.    FreeProcInstance(lpfn);
  14.    return(ret);
  15.    }
  16.